import Request from "@/common/utils/request/index";
enum Api {
  GetCustomerList = "/jeecgboot/posCustomer/list",
  AddCustomer = "/jeecgboot/posCustomer/add",
  EditCustomer = "/jeecgboot/posCustomer/edit",
}

export const getCustomerList = (params: any) => {
  return Request.getInstance().send({
    url: Api.GetCustomerList,
    method: "GET",
    params,
  });
};

export const addCustomer = (params: any) => {
  return Request.getInstance().send({
    url: Api.AddCustomer,
    method: "POST",
    data: params,
  });
};

export const editCustomer = (params: any) => {
  return Request.getInstance().send({
    url: Api.EditCustomer,
    method: "POST",
    data: params,
  });
};
